package cn.tedu.hm.mapper;

import cn.tedu.hm.pojo.Admin;
import cn.tedu.hm.pojo.vo.AdminLoginInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author Administrator
* @description 针对表【ams_admin(管理员)】的数据库操作Mapper
* @createDate 2023-04-11 16:12:37
* @Entity cn.tedu.hm.pojo.Admin
*/
public interface AdminMapper extends BaseMapper<Admin> {

    int countByUsername(String username);

    int countByPhone(String phone);

    int countByEmail(String email);

    AdminLoginInfoVO getLoginInfoByUsername(String username);

    int update(Admin admin);

    List<Admin> list();
}




